<?php
/**
 * @fileoverview
 * @data         对我表态的
 */
class ml_biz_feed_likeMe extends ml_biz_feed_abstract{
    private $res_rid = array();
    /**
     * @fileoverview    拆feed数据，获取扩展数据
     * @uid            visitor['uid']
     */
    public function output($data,$uid){

        $oContent = new ml_model_dbContent();
        foreach ($data as $v_rid) {
            $this->res_rid[] = $v_rid['content_rid'];
        }
        $res = $oContent->get_content_by_rids($this->res_rid);
        $nicks = ml_tool_nick::uids2nicks(array($uid));
        $user_html=$this->format_like_user($uid,$nicks[$uid]); 
        
        foreach ($data as &$fen) {
            $fen['show_share'] = false;//不分享
            $fen['show_com'] = true;//回复
            $fen['feed_rid'] = $fen['rid'];
            $fen['uid']=$fen['act_uid'];
            $fen['show_del'] = false;
            $fen['rid']=$fen['content_rid'];
            $fen['show_type'] = 'quote';
            $fen['res'] = $res[$fen['rid']];                
            $fen['content'] = $this->formate_att_content($fen['attitude']);
            $oid=ml_tool_resid::resid2uid($fen['rid']);
            if($oid != $uid){
                $fen['content'].=$user_html;
                $fen['content'].=$this->formate_att_content($fen['attitude']);
            }
        }

        return $this->parse($data);
    }

}
?>